@extends('web.frame_layout')
<link rel="stylesheet" href="{{asset('web/css/system-notice.css')}}">
<?php
$parent_menu = "关于我们";
if ($flag == 0) {
    $menu_selected = "新闻动态";
} elseif ($flag == 1) {
    $menu_selected = "系统公告";
}
?>

@section('content')

        <div class="m-right-nr">
            <div>
                <h2>
                    <span>
                        {{$menu_selected}}
                    </span>
                </h2>
            </div>
            <div class="notice-box">
                <h3>
                    {{--<input type="checkbox" class="checkboxH6">--}}
                    标题内容
                    <span>
                       操作
                    </span>
                    <span>发布时间</span></h3>
                <ul>
                    @foreach($notices as $notice)
                    {{--<li class="read"><a href="#" onclick="contentDlg({{$flag}},{{$notice->id}})"><h3><input type="checkbox">{{$notice->title}}</h3><h4><span>{{date("Y-m-d H:i",$notice->time)}}</span><span>调货通知</span></h4></a></li>--}}
                    <li><a href="###" onclick="contentDlg({{$flag}},{{$notice->id}})"><h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{$notice->title}}</h3><h4><span>{{date("Y-m-d H:i",$notice->time)}}</span><span>点击查看</span></h4></a></li>
                    @endforeach
                </ul>
                {{--<h6>--}}
                    {{--<input type="checkbox" class="checkboxH6">--}}
                    {{--<input type="button" value="删除" class="del">--}}
                    {{--<input type="button" value="标记已读" class="trueRead">--}}
                    {{--<input type="button" value="全部已读" class="allRead">--}}
                {{--</h6>--}}

            </div>

            <div>
                @include('web.coms.fenye')
            </div>
        </div>

@endsection

@section('footer')
    <script src="{{asset('web/js/system-notice.js')}}"></script>
    @include('web.coms.content-dialog')
@endsection